package com.bestcem.xm.om.dao.mapper;

import com.bestcem.xm.om.entity.PackMiddle;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author zhangfeng <feng.zhang@idiaoyan.com>
 * @version v1.0
 * @date 2022/3/22 14:52
 */
@Mapper
public interface PackMiddleMapper {
    /**
     * listPackIdsByPlatformId
     * @param platformId
     * @return
     */
    List<String> listPackIdsByPlatformId(String platformId);

    /**
     * deleteByPlatformId
     * @param platformId
     * @return
     */
    int deleteByPlatformId(String platformId);

    /**
     * batchInsert
     * @param list
     * @return
     */
    int batchInsert(List<PackMiddle> list);

    /**
     * findOneByPlatformIdAndPackageId
     * @param platformId
     * @param packageId
     * @return
     */
    PackMiddle findOneByPlatformIdAndPackageId(String platformId, String packageId);
}
